package com.itheima.em.api.vo;

import com.itheima.em.enums.PointType;
import com.itheima.em.enums.ProviderType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Map;

/**
 * 标记点 参数
 */
@Data
public class PointParam {

    @ApiModelProperty(value = "服务提供商，必须大写，默认为：高德地图", example = "NONE")
    private ProviderType provider = ProviderType.NONE;
    @ApiModelProperty(value = "地图服务商中的服务id", required = true)
    private Long serverId; //地图服务商中的服务id
    @ApiModelProperty(value = "分组id")
    private Long groupId; //分组id
    @ApiModelProperty(value = "标注点id")
    private Long pointId; //标注点id
    @ApiModelProperty(value = "标注点名称", required = true)
    private String name; //名称
    @ApiModelProperty(value = "标注点描述", required = true)
    private String desc; //描述
    @ApiModelProperty(value = "标注点类型")
    private PointType type; //点类型，0默认 1.区域 2.围栏等等
    @ApiModelProperty(value = "标注点经度", required = true)
    private Double longitude;// 坐标经度
    @ApiModelProperty(value = "标注点纬度", required = true)
    private Double latitude;// 坐标纬度
    @ApiModelProperty(value = "标注id列表")
    private Long[] pointIds; //标注id列表
    @ApiModelProperty(value = "其他请求参数")
    private Map<String, Object> param; //其他请求参数
    @ApiModelProperty(value = "页数，默认：1")
    private Integer page = 1; //页数
    @ApiModelProperty(value = "页面大小，默认：20")
    private Integer pageSize = 20; //页面大小

}
